package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 会员对象 front_member
 * 
 * @author ruoyi
 * @date 2024-03-17
 */
public class Member extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 会员id */
    private Long id;

    /** 微信unionid */
    @Excel(name = "微信unionid")
    private String unionid;

    /** 小程序appid */
    @Excel(name = "小程序appid")
    private String appid;

    /** 用户在当前小程序的openid */
    @Excel(name = "用户在当前小程序的openid")
    private String openid;

    /** 手机号 */
    @Excel(name = "手机号")
    private String mobile;

    /** 密码 */
    @Excel(name = "密码")
    private String password;

    /** 昵称 */
    @Excel(name = "昵称")
    private String nickname;

    /** 性别 1 女，2 男 */
    @Excel(name = "性别 1 女，2 男")
    private String sex;

    /** 年龄 */
    @Excel(name = "年龄")
    private String age;

    /** 用户头像 */
    @Excel(name = "用户头像")
    private String avatar;

    /** 用户签名 */
    @Excel(name = "用户签名")
    private String sign;

    /** 是否禁用 1（true）已禁用，  0（false）未禁用 */
    @Excel(name = "是否禁用 1", readConverterExp = "t=rue")
    private Integer isDisabled;

    /** 逻辑删除 1（true）已删除， 0（false）未删除 */
    @Excel(name = "逻辑删除 1", readConverterExp = "t=rue")
    private Integer isDeleted;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtCreate;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date gmtModified;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setUnionid(String unionid) 
    {
        this.unionid = unionid;
    }

    public String getUnionid() 
    {
        return unionid;
    }
    public void setAppid(String appid) 
    {
        this.appid = appid;
    }

    public String getAppid() 
    {
        return appid;
    }
    public void setOpenid(String openid) 
    {
        this.openid = openid;
    }

    public String getOpenid() 
    {
        return openid;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setPassword(String password) 
    {
        this.password = password;
    }

    public String getPassword() 
    {
        return password;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setSex(String sex) 
    {
        this.sex = sex;
    }

    public String getSex() 
    {
        return sex;
    }
    public void setAge(String age) 
    {
        this.age = age;
    }

    public String getAge() 
    {
        return age;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setSign(String sign) 
    {
        this.sign = sign;
    }

    public String getSign() 
    {
        return sign;
    }
    public void setIsDisabled(Integer isDisabled) 
    {
        this.isDisabled = isDisabled;
    }

    public Integer getIsDisabled() 
    {
        return isDisabled;
    }
    public void setIsDeleted(Integer isDeleted) 
    {
        this.isDeleted = isDeleted;
    }

    public Integer getIsDeleted() 
    {
        return isDeleted;
    }
    public void setGmtCreate(Date gmtCreate) 
    {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtCreate() 
    {
        return gmtCreate;
    }
    public void setGmtModified(Date gmtModified) 
    {
        this.gmtModified = gmtModified;
    }

    public Date getGmtModified() 
    {
        return gmtModified;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("unionid", getUnionid())
            .append("appid", getAppid())
            .append("openid", getOpenid())
            .append("mobile", getMobile())
            .append("password", getPassword())
            .append("nickname", getNickname())
            .append("sex", getSex())
            .append("age", getAge())
            .append("avatar", getAvatar())
            .append("sign", getSign())
            .append("isDisabled", getIsDisabled())
            .append("isDeleted", getIsDeleted())
            .append("gmtCreate", getGmtCreate())
            .append("gmtModified", getGmtModified())
            .toString();
    }
}
